<template>
    <div class="wrap">
      <h3>
        <span>充值卡兑换</span>
        <router-link to="/mybill">
          <button v-show="show">查看账单</button>
        </router-link>
      </h3>


      <input v-show="show" type="text" placeholder="请输入充值卡兑换码进行充值"><br>
      <button v-show="show" class="btn1" @click="chongzhi()">充值</button>
      <p class="pp" v-show="show1">暂无数据,请登录</p>
    </div>
</template>

<script>
    export default {
        name: "Chongzhika",
      data(){
          return{
            show:true,
            show1:false,
          }
      },
      mounted(){
        if(this.$store.state.phone==''){
          this.show=false;
          this.show1=true;
        }else{
          this.show=true;
          this.show1=false;
        }
      }
    }
</script>

<style scoped>
  .wrap{
    width: 1083px;
    height: 623px;
    border: 1px solid #e7e7e7;
  }
  .wrap h3{
    width: 1043px;
    height: 30px;
    line-height: 30px;
    padding: 13px 20px;
    border-bottom: 1px solid #e7e7e7;
  }
  .wrap h3 span{
    font-size: 18px;
    float: left;
    color: #252525;
  }
  .wrap h3 button{
    float: right;
    color: #fff;
    width: 90px;
    height: 30px;
    background: #498e3d;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
  }
  input{
    width: 435px;
    height: 23px;
    padding: 15px 20px;
    border: 1px solid #e7e7e7;
    font-size: 18px;
    color: #999999;
    margin: 50px 0 100px 30px;
  }
  .btn1{
    width: 150px;
    height: 50px;
    background: #f08200;
    color: #fff;
    margin-left: 30px;
    border-radius: 5px;
    font-size: 20px;
  }

  .pp{
    width: 1083px;
    height: 46px;
    line-height: 46px;
    border-bottom: 1px solid #e9e9e9;
    text-align: center;
  }
</style>
